%YAML 1.2
---
!!map {
  ? !!str "First occurrence"
  : &A !!str "Foo",
  ? !!str "Second occurrence"
  : *A,
  ? !!str "Override anchor"
  : &B !!str "Bar",
  ? !!str "Reuse anchor"
  : *B,
}

